package com.yanqu.road.entity.manor;

import com.yanqu.road.entity.DataObject;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author ：zfr
 * @date ：2021/5/10 17:49
 */
public class UserManorData extends DataObject {
    private long userId;            //玩家id
    private long prosperousValue;   //繁荣度
    private int farmLandUnLock;     //农场地块解锁
    private int eventId;            //事件id
    private boolean isGetReward;    //是否领奖
    private long refreshTime;       //刷新时间
    private String reward;          //奖励
    private Map<Integer, Long> rankActivityDataMap = new ConcurrentHashMap<>(); //冲榜数据


    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public long getProsperousValue() {
        return prosperousValue;
    }

    public void setProsperousValue(long prosperousValue) {
        if (this.prosperousValue != prosperousValue) {
            this.prosperousValue = prosperousValue;
            setUpdateOption();
        }
    }

    public int getFarmLandUnLock() {
        return farmLandUnLock;
    }

    public void setFarmLandUnLock(int farmLandUnLock) {
        if (this.farmLandUnLock != farmLandUnLock) {
            this.farmLandUnLock = farmLandUnLock;
            setUpdateOption();
        }
    }

    public int getEventId() {
        return eventId;
    }

    public void setEventId(int eventId) {
        if (this.eventId != eventId) {
            this.eventId = eventId;
            setUpdateOption();
        }
    }

    public boolean isGetReward() {
        return isGetReward;
    }

    public void setGetReward(boolean getReward) {
        if (isGetReward != getReward) {
            isGetReward = getReward;
            setUpdateOption();
        }
    }

    public long getRefreshTime() {
        return refreshTime;
    }

    public void setRefreshTime(long refreshTime) {
        if (this.refreshTime != refreshTime) {
            this.refreshTime = refreshTime;
            setUpdateOption();
        }
    }

    public String getReward() {
        return reward;
    }

    public void setReward(String reward) {
        this.reward = reward;
    }

    public Map<Integer, Long> getRankActivityDataMap() {
        return rankActivityDataMap;
    }

    public void setRankActivityDataMap(Map<Integer, Long> rankActivityDataMap) {
        this.rankActivityDataMap = rankActivityDataMap;
        setUpdateOption();
    }
}
